<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页面</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0">
    <script type="text/javascript" src="../lib/polyfill.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/mainPage.css">
    <link rel="stylesheet" type="text/css" href="../lib/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="../lib/fontasome/css/font-awesome.css">
    <script type="text/javascript" src="../lib/vue.min.js"></script>
    <script type="text/javascript" src="../lib/vue-router.min.js"></script>
    <script type="text/javascript" src="../lib/vue-resource.min.js"></script>

     
</head>
<body>
    <div class="view_box">
        <div id="message_view">
            <div class="background">
                <div class="searchText">
                    <input type="text" class="form-control" v-model="searchName">
                </div>
                <div class="mailImfo">
                <div v-for="(Mail,index) in allMail">
                    <div class="Button messageButton" @click="window.toMessage(Mail.eid)" v-if="(Mail.title.search(searchName)>-1
                    ||Mail.common_content.search(searchName)>-1
                    ||Mail.sendid.search(searchName)>-1)
                    &&(searchName!=''||isCollection==2)
                    &&(Mail.isbin==0)">
                    <img :src="isopen(Mail.recvid,Mail.issend)" alt="">
                        <div>
                            <p class="title">{{Mail.title}}</p>
                            <p class="user_name">{{Mail.sendid}}</p>
                            <p>{{Mail.abstract}}...<span>{{Mail.sendtime}}</span></p>
                    
                        </div>
                    </div>
                </div>
                </div>
            </div>
        </div>
        

    </div>
    <script type="text/javascript" src="../js/SearchMail.js"></script>
</body>
</html>